 package com.lj.mcore.entity;


 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;

 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;


 @Entity
 @Table(name="shopping_goodsbrand")
 public class GoodsBrand extends IdEntity
 {
   private String name;
   private int sequence;
 
   @OneToOne(fetch= FetchType.LAZY)
   private Accessory brandLogo;
   private boolean recommend;
 
   @Column(columnDefinition="int default 0")
   private int audit;
 
   @Column(columnDefinition="int default 0")
   private int userStatus;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private User user;
 
   @Column(columnDefinition="LongText")
   private String remark;
 
   @ManyToMany(mappedBy="gbs")
   private List<GoodsType> types = new ArrayList();
 
   @ManyToOne(fetch=FetchType.LAZY)
   private GoodsBrandCategory category;
 
   @OneToMany(mappedBy="goods_brand")
   private List<Goods> goods_list = new ArrayList();
 
   @Column(columnDefinition="bit default false")
   private boolean weixin_shop_recommend;
 
   @Temporal(TemporalType.DATE)
   private Date weixin_shop_recommendTime;
   private String first_word;
 
   public String getFirst_word() { return this.first_word; }
 
   public void setFirst_word(String first_word)
   {
     this.first_word = first_word;
   }
 
   public boolean isWeixin_shop_recommend() {
     return this.weixin_shop_recommend;
   }
 
   public void setWeixin_shop_recommend(boolean weixin_shop_recommend) {
     this.weixin_shop_recommend = weixin_shop_recommend;
   }
 
   public Date getWeixin_shop_recommendTime() {
     return this.weixin_shop_recommendTime;
   }
 
   public void setWeixin_shop_recommendTime(Date weixin_shop_recommendTime) {
     this.weixin_shop_recommendTime = weixin_shop_recommendTime;
   }
 
   public String getRemark() {
     return this.remark;
   }
 
   public void setRemark(String remark) {
     this.remark = remark;
   }
 
   public int getUserStatus() {
     return this.userStatus;
   }
 
   public void setUserStatus(int userStatus) {
     this.userStatus = userStatus;
   }
 
   public User getUser() {
     return this.user;
   }
 
   public void setUser(User user) {
     this.user = user;
   }
 
   public List<Goods> getGoods_list() {
     return this.goods_list;
   }
 
   public void setGoods_list(List<Goods> goods_list) {
     this.goods_list = goods_list;
   }
 
   public GoodsBrandCategory getCategory() {
     return this.category;
   }
 
   public void setCategory(GoodsBrandCategory category) {
     this.category = category;
   }
 
   public String getName() {
     return this.name;
   }
 
   public void setName(String name) {
     this.name = name;
   }
 
   public int getSequence() {
     return this.sequence;
   }
 
   public void setSequence(int sequence) {
     this.sequence = sequence;
   }
 
   public Accessory getBrandLogo() {
     return this.brandLogo;
   }
 
   public void setBrandLogo(Accessory brandLogo) {
     this.brandLogo = brandLogo;
   }
 
   public boolean isRecommend() {
     return this.recommend;
   }
 
   public void setRecommend(boolean recommend) {
     this.recommend = recommend;
   }
 
   public int getAudit() {
     return this.audit;
   }
 
   public void setAudit(int audit) {
     this.audit = audit;
   }
 
   public List<GoodsType> getTypes() {
     return this.types;
   }
 
   public void setTypes(List<GoodsType> types) {
     this.types = types;
   }
 }



 
 